package com.ygu.HomeWork.NO01;

public class Student {
    String name;
    String language;
    Student next;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public Student getNext() {
        return next;
    }

    public void setNext(Student next) {
        this.next = next;
    }

    public Student(Student student) {
        this.name = student.getName();
        this.language = student.getLanguage();
        this.next = student.getNext();
    }


    public Student(String name, String language) {
        this.name = name;
        this.language = language;
    }

}
